<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
    <script type="text/javascript">
        window.onload = function () {
            var btn = document.getElementById("btnId");
            btn.onclick = function () {
                location = "${pageContext.request.contextPath}/testGet";
            };
        };
    </script>
</head>
<body>
<a href="${pageContext.request.contextPath}/test">测试testView</a><br>
<a href="${pageContext.request.contextPath}/testGet">测试REST风格的testGet</a><br>
<input type="button" id="btnId" value="button测试REST风格的testGet"></input>
<form action="${pageContext.request.contextPath}/testGet" method="post">
    <input type="submit" value="form测试REST风格的testGet">
</form>
<form action="${pageContext.request.contextPath}/testPost" method="post">
    <input type="submit" value="form测试REST风格的testPost">
</form>
<form action="${pageContext.request.contextPath}/testPut" method="post">
    <input type="hidden" name="_method" value="put">
    <input type="submit" value="form测试REST风格的testPut">
</form>
<form action="${pageContext.request.contextPath}/testDelete" method="post">
    <input type="hidden" name="_method" value="delete">
    <input type="submit" value="form测试REST风格的testDelete">
</form>
</body>
</html>
